package cn.dengta.webapp.im.entity;

import java.util.Date;

import cn.dengta.common.model.Status;
import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 破冰牵线录制视频记录表
 *
 * @author zw
 * @since 2022-09-26
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("im_speed_dating_video_log")
public class SpeedDatingVideoLog extends TimeBasedEntity {

	private static final long serialVersionUID = 1L;

	/** 用户ID */
	private Long userId;
	/** 录制视频用户id */
	private Long videoUserId;
	/** 状态：0=未接听；1=已接听 */
	private Integer status;

	public static final String ID = "id";
	public static final String USER_ID = "user_id";
	public static final String VIDEO_USER_ID = "video_user_id";
	public static final String STATUS = "status";
	public static final String ADD_TIME = "add_time";
	public static final String UPDATE_TIME = "update_time";

	public SpeedDatingVideoLog init(Long userId, Long videoUserId, Date now) {
		this.userId = userId;
		this.videoUserId = videoUserId;
		this.status = Status.NO.value;
		this.initTime(now);
		return this;
	}

}
